package cn.aitrox.ry.service.auth.mapper;

import cn.aitrox.ry.service.auth.entity.AuthGroupRoleEntity;
import com.github.abel533.mapper.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AuthGroupRoleMapper extends Mapper<AuthGroupRoleEntity> {

    void deleteByGroupId(@Param("groupId") Integer groupId);

    void batchInsert(@Param("list") List<AuthGroupRoleEntity> list);

    void deleteByGroupIdRoleIds(@Param("groupId") Integer groupId, @Param("roleIds") List<Integer> roleIds);

    List<AuthGroupRoleEntity> findByGroupIds(@Param("groupIds") List<Integer> groupIds);
}
